package com.tensquare.gathering.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.tensquare.gathering.pojo.Gathering;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GatheringDao  extends BaseMapper<Gathering> {
    @Select("select * from tb_gathering WHERE city=#{city}")
    List<Gathering> selectByCity(String city, Page page1);
}
